package com.github.niefy.modules.wx.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.github.niefy.modules.wx.entity.Message;
import org.apache.ibatis.annotations.CacheNamespace;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Map;

/**
 * @Description:
 * @Company：乙盟信息
 * @Author: jiangheng
 * @Date: 2022/2/26 16:13
 * @Version 1.0
 */
@Mapper
@CacheNamespace(flushInterval = 300000L)//缓存五分钟过期
public interface MessageMapper extends BaseMapper<Message> {

    IPage<Message> listMessage(@Param("page") IPage page,@Param("params") Map<String, Object> params);
}
